home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-03-26 | 534 b | 22 lines | [TEXT/R*ch] |
- // A custom subclass of the WebObjects Java class “Component”
- // (WOComponent in the Java name space). The NeXT Java frameworks are
- // imported as next.util.* and next.wo.*. This subclass declares a Java
- // String as an instance variable and a single action method.
-
- import next.util.*;
- import next.wo.*;
-
- public class Main extends Component
- {
- String visitorName;
-
- public Component sayHello()
- {
- Hello nextPage =
-
- (Hello)application().pageWithName("Hello");
- nextPage.setVisitorName(visitorName);
- return nextPage;
- }
- }
-